// import '@/assets/styles/base.css'
// import '@/assets/styles/main.css'
// import $ from 'jquery';
import 'element-plus/dist/index.css'
import 'reset-css/reset.css'
import './assets/icons/iconfont.css'
import {createApp} from 'vue'
import {createPinia} from 'pinia'
import App from './App.vue'
import router from '@/router'
import '@/router/guard'
import emitter from "@/utils/bus";
import ElementPlus from 'element-plus'
// 引入 Element Plus 图标库
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')
